package com.yxb.consumer.feign;

import com.yxb.consumer.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @PackgeName: com.yxb.consumer.feign
 * @ClassName: userClientFallback
 * @Author: CongR
 * Date: 2021/3/23 11:27
 * project name: springcloud
 * @Version:
 * @Description: 服务熔断降级类
 */
@Component
public class userClientFallback implements UserFeign {
    @Override
    public User queryById(Long id) {
        User user = new User();
        user.setId(id);
        user.setName("用户异常");
        return user;
    }
}
